<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.util.Constants,com.hs.core.utils.*" pageEncoding="UTF-8"%>
<%@ page import ="cn.ac.cintcm.dataconverge.researchsubject.domain.*" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String str = (String)request.getParameter("idStr"); 
System.out.println("Str:" + str);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'tagTree.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="<%=basePath %>js/resources/css/ext-all.css" /> 
	<script language="javascript" src="<%=basePath %>js/adapter/ext/ext-base.js"></script>
	<script language="javascript" src="<%=basePath %>js/ext-all.js"></script>
	<script type="text/javascript">
	var tree;
	</script>
	<script language="javascript" src="<%=basePath %>js/tagTree.js"></script> 
	 
  </head>
  
  <body> 
    <div id="tree-div" style="overflow:auto; height:300px;width:250px;border:1px solid #c3daf9;"></div> 
  </body>
</html>
<script type="text/javascript">
<!--
   <%if(null != str){%>
   	   var ids ='<%=str%>';
   	   var arr = ids.split(',');
   	   if(arr != null && arr.length>0){
   	   		for(var index=0;index<arr.length;index++){
   	   			var id = arr[i];
   	   		    var checkedNode = tree.getNodeById(id);
   	   		    alert(id); 
   	   		}
   	   
   	   }
   
   
   <%}%>
//-->
</script>
